﻿namespace BM.Tools.WebControls.MForm.Controls
{
    using System.Web.UI;

    /// <summary>
    /// A class that can be used to provide a namespace and a corresponding prefix
    /// </summary>
    public class UriMapping
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UriMapping"/> class. 
        /// </summary>
        public UriMapping()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UriMapping"/> class. 
        /// </summary>
        /// <param name="prefix">
        /// The prefix.
        /// </param>
        /// <param name="namespace">
        /// The namespace.
        /// </param>
        public UriMapping(string prefix, string @namespace)
        {
            Prefix = prefix;
            Namespace = @namespace;
        }

        /// <summary>
        /// Gets or sets Namespace.
        /// </summary>
        /// <value>
        /// The namespace.
        /// </value>
        [PersistenceMode(PersistenceMode.Attribute)]
        public string Namespace
        {
            get; 
            set;
        }

        /// <summary>
        /// Gets or sets Prefix.
        /// </summary>
        /// <value>
        /// The prefix.
        /// </value>
        [PersistenceMode(PersistenceMode.Attribute)]
        public string Prefix
        {
            get; 
            set;
        }
    }
}